<?php
//use Illuminate\Support\Facades\Schema;
use Jialeo\LaravelSchemaExtend\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopUserInfosTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_user_infos', function (Blueprint $table) {
            $table->comment = '商城会员表';
            $table->increments('id')->comment('会员ID');
			$table->integer('user_id')->comment('总户表id');
            $table->tinyInteger('status')->default(1)->comment('状态:0=禁用,1=启用');
			$table->decimal('amount',8,2)->default('0.00')->comment('钱包金额');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('shop_user_infos');
    }
}
